package models;

import java.util.Collection;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;

import play.db.jpa.Model;

@Entity
public class LogsTarefa extends Model {

	private String log;
	private String data;
	private int hora;
	private int minuto;
	
	@ManyToOne
	@JoinColumn(name = "tarefa_id")
	private Tarefa tarefa;

	public LogsTarefa(String log, String data, int hora, int minuto, Tarefa tarefa) {
		super();
		this.log = log;
		this.data = data;
		this.tarefa = tarefa;
		this.hora = hora;
		this.minuto = minuto;
	}

	public String getLog() {
		return this.log;
	}

	public void setLog(String log) {
		this.log = log;
	}

	public String getData() {
		return this.data;
	}

	public void setData(String data) {
		this.data = data;
	}

	public void setTarefa(Tarefa tarefa) {
		this.tarefa = tarefa;
	}

	public int getHora() {
		return hora;
	}

	public void setHora(int hora) {
		this.hora = hora;
	}

	public int getMinuto() {
		return minuto;
	}

	public void setMinuto(int minuto) {
		this.minuto = minuto;
	}
	
	

}
